package br.ufrj.dcc.trabxml.view;

import javax.swing.JFrame;

public class FormObs extends JFrame {
	
	public FormObs(String title,String textoObs) {
        initComponents();
        this.setTitle(title);
        showText(textoObs);
        this.setBounds(0, 0, 500, 350);
        setLocationRelativeTo(null);
    }
	
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        
        jTextArea1.setEditable(false);
        jTextArea1.setLineWrap(true);
        jTextArea1.setWrapStyleWord(true);
        
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);

        pack();
	}
    
    private void showText(String textToBeShown){
    	jTextArea1.setText(textToBeShown);
    }

	private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    
}
